home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 201-225 / disk_217 / stevie / param.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  60 lines

  1. /*
  2.  * STEVIE - Simply Try this Editor for VI Enthusiasts
  3.  *
  4.  * Code Contributions By : Tim Thompson           twitch!tjt
  5.  *                         Tony Andrews           onecom!wldrdg!tony 
  6.  *                         G. R. (Fred) Walter    watmath!watcgl!grwalter 
  7.  */
  8.  
  9. /*
  10.  * Settable parameters 
  11.  */
  12.  
  13. struct param {
  14.     char           *fullname;    /* full parameter name */
  15.     char           *shortname;    /* permissible abbreviation */
  16.     int             value;    /* parameter value */
  17.     int             flags;
  18. };
  19.  
  20. extern struct param params[];
  21.  
  22. /*
  23.  * Flags 
  24.  */
  25. #define    P_BOOL        0x01    /* the parameter is boolean */
  26. #define    P_NUM        0x02    /* the parameter is numeric */
  27. #define    P_CHANGED    0x04    /* the parameter has been changed */
  28.  
  29. /*
  30.  * The following are the indices in the params array for each parameter 
  31.  */
  32.  
  33. /*
  34.  * Numeric parameters 
  35.  */
  36. #define    P_TS        0    /* tab size */
  37. #define    P_SS        1    /* scroll size */
  38. #define    P_RP        2    /* report */
  39. #define    P_LI        3    /* lines */
  40.  
  41. /*
  42.  * Boolean parameters 
  43.  */
  44. #define    P_VB        4    /* visual bell */
  45. #define    P_SM        5    /* showmatch */
  46. #define    P_WS        6    /* wrap scan */
  47. #define    P_EB        7    /* error bells */
  48. #define    P_MO        8    /* show mode */
  49. #define    P_BK        9    /* make backups when writing out files */
  50. #define    P_CR        10    /* use cr-lf to terminate lines on writes */
  51. #define    P_LS        11    /* show tabs and newlines graphically */
  52. #define    P_IC        12    /* ignore case in searches */
  53. #define    P_AI        13    /* auto-indent */
  54. #define    P_NU        14    /* number lines on the screen */
  55.  
  56. /*
  57.  * Macro to get the value of a parameter 
  58.  */
  59. #define    P(n)    (params[n].value)
  60.